import request from "@/router/axios";

export const getDictList = (current, size, params) => {
  return request({
    url: "/api/blade-system/dict/list",
    method: "get",
    params: {
      ...params,
      current,
      size
    }
  });
};

export const getProjectsubjectanswer = (current, size, params) => {
  return request({
    url: "/api/blade-measure/measure/projectsubjectanswer/list",
    method: "get",
    params: {
      ...params,
      current,
      size
    }
  });
};

export const getProjectsubjectList = (current, size, params) => {
  return request({
    url: "/api/blade-measure/measure/projectsubject/list",
    method: "get",
    params: {
      ...params,
      current,
      size
    }
  });
};

export const saveProjectsubject = params => {
  return request({
    url: "/api/blade-measure/measure/projectsubject/save",
    method: "post",
    data: {
      ...params
    }
  });
};

export const updateProjectsubject = params => {
  return request({
    url: "/api/blade-measure/measure/projectsubject/update",
    method: "post",
    data: {
      ...params
    }
  });
};

export const deleteProjectsubject = params => {
  return request({
    url: "/api/blade-measure/measure/projectsubject/remove",
    method: "post",
    params: {
      ...params
    }
  });
};
